﻿<Window x:Class="DocumentManagement.Views.LoginWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:vm="clr-namespace:DocumentManagement.ViewsModels"
        
        Title="LoginWindow" Height="300" Width="300" Background="AliceBlue" WindowStartupLocation="CenterScreen" WindowState="Normal" Loaded="Window_Loaded">
    
    <Window.Resources>
        <vm:LoginWindowViewsModel x:Key="loginWindowViewsModel"/>
    </Window.Resources>
    
    <Grid DataContext="{Binding Source={StaticResource loginWindowViewsModel}}">
        <TextBox Height="23" HorizontalAlignment="Left" Margin="104,71,0,0" Name="UserNameTextBox" VerticalAlignment="Top" Width="120" TabIndex="1" Text="{Binding Path=TextUsername, Mode=TwoWay}" />
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="48,71,0,0" Name="textBlock1" Text="UserName" VerticalAlignment="Top" />
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="48,123,0,0" Name="textBlock2" Text="PassWord" VerticalAlignment="Top" />
        <Button Content="OK" Height="23" HorizontalAlignment="Left" Margin="57,185,0,0" Name="LoginButton" VerticalAlignment="Top" Width="75"  TabIndex="3" Click="LoginButton_Click" />
        <Button Content="Cancel" Height="23" HorizontalAlignment="Left" Margin="149,185,0,0" Name="CancelButton" VerticalAlignment="Top" Width="75" TabIndex="4" />
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="120,26,0,0" Name="textBlock3" Text="Login" VerticalAlignment="Top" FontSize="16" />
        <PasswordBox Height="23" HorizontalAlignment="Left" Margin="104,123,0,0" Name="PasswordTextBox" VerticalAlignment="Top" Width="120" TabIndex="2" PasswordChar="{Binding Path=TextPassWord, Mode=TwoWay}" />
    </Grid>
</Window>
